/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xmlcollabclient.data;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Runner
 */
public class Members {

    public  List<Member> getMembers(Integer start) throws Exception {

        List<Member> members = new ArrayList<Member>();

        // create 5 members
        for(Integer i = start; i<5; i++) {
            Member member = new Member();

            member.mId = i+1;
            member.mName = "Member"+(i+1);
            member.mPassword = "test";

            members.add(member);
        }

        return members;
    }

   public static javax.swing.DefaultComboBoxModel getmNames(Integer start) {

        List<String> memNames = new ArrayList<String>();

        // create 5 members names
        for(Integer i = start; i<5; i++) {
            Member member = new Member();

            member.mName = "Member"+(i+1);
            memNames.add(member.mName);
        }

        javax.swing.DefaultComboBoxModel model
                = new javax.swing.DefaultComboBoxModel(memNames.toArray());
         

        return model;
    }
}
